package com.qiang;

public class Demo02 {
    public static void main(String[] args) {
        int sum = getSum(11, 22, 33, 44);
        System.out.println(sum);
    }

    public static int getSum(int... a) {
        int sum = 0;
        for (int i : a) {
            sum = sum + i;
        }
        return sum;
    }
}

